<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="http://localhost/themes/admin/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
<link href="http://localhost/themes/admin/css/admin.css" type="text/css" rel="stylesheet" />
<script src="http://localhost/assets/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<link id="artDialog-skin" href="http://localhost/assets/js/dialog/skins/default.css" rel="stylesheet" />
<script>
</script>
<title>付款方式列表</title>
</head>

<body>
	<div class="row-fluid">
	  <div class="span6">
		<div class="alert alert-success">
			<p>汇款人姓名：<?php echo $Remittance->Name; ?></p>
			<p>手机号码：<?php echo $Remittance->Mobile; ?></p>
			<p>汇款方式：<?php echo $PayType->Name; ?></p>
			<p>汇款金额：<?php echo $Remittance->Remittance; ?></p>
			<p>汇款账号：<?php echo $Remittance->AccountNo; ?></p>
		</div>
	  </div>
	  <div class="span6"><img style="width:400px;height:150px;"/></div>
	</div>
	<div class="tablebox_header">   
		<form action="" method="post" accept-charset="utf-8" class="form-search pull-right" Id="form1">
		<?php 
		//$attributes = array('class' => 'form-search pull-right','Id'=>'form1');
		//echo form_open('', $attributes);
			echo form_input('Query_Name_Like_String', set_value('Query_Name_Like_String'),"class='input-medium search-query' placeholder='起始时间' id='Query_Name_Like_String' ");
			echo '三十分钟内';
			?>
			<button type="button" class="btn" onclick="submit1()">搜索</button>
		</form>
		<div class="pull-left"><?php echo $bank;?>账目</div>
	</div>
	<?php 
	$attributes = array('id' => 'form2');
	echo form_open('admin/BankAccountsListNoAuditPost/'.$Remittance->Id,$attributes);?>
	<div class="tablebox">
		<?php echo $table;?>
	</div>
	<div class="tablebox_footer">
	<script>
	function submit2(){
		f = $('#form2')[0];
		c=$("input[name='account[]']:checked"); 
		
		f.method='post';
		
		if(c.length==0){
			alert('必须选择一个关联账单！');
			return;
		}
		//alert(c.value);
		f.submit();
	}
	</script>
	<div class="row-fluid">
		<div class="alert alert-info">
			<h3>汇款处理</h3>
			<div class="row-fluid">
				<div class="span6">
					<div class="alert alert-success">
						<button type="button" class="btn" onclick="submit2()">确认关联</button>
					</div>
				</div>
				<div class="span6">
					<div class="alert alert-error">
						<?php 
						echo form_open('admin/RemittanceError');
						echo form_textarea('txtname','','style="width:100%"');
						echo form_submit('mysubmit', '汇款失败','class="btn btn-danger"');
						?>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	
	</div>
	</form>
</body>
</html>